package com.jlu.controller;

import com.jlu.feignclients.ProductClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class UserController {

  @Resource
  private ProductClient productClient;

  @GetMapping("invoke")
  public String invoke(){

    String test = productClient.test(21);

    return "调用方正常!!!" + test;
  }
}
